package com.example.smart_city_0829.activity.waste_sorting;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.example.smart_city_0829.R;
import com.example.smart_city_0829.base.BaseActivity;
import com.example.smart_city_0829.entity.waste_sorting.Sort;
import com.example.smart_city_0829.retrofit.NetCallBack;

import java.util.List;

import retrofit2.Call;
import retrofit2.Response;

public class SearchResultActivity extends BaseActivity {

    @Override
    protected int getLayoutId() {
        return R.layout.activity_search_result;
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void initData() {
        final String name = getIntent().getStringExtra("name");

        api.getGarbageSort(name).enqueue(new NetCallBack<Sort>() {
            @Override
            public void onResponse(Call<Sort> call, Response<Sort> response) {
                if (response.body() == null) return;

                final List<Sort.RowsBean> rows = response.body().getRows();

            }
        });
    }

    @Override
    protected void initEvent() {

    }

    @Override
    protected String getActionBarTitle() {
        return "";
    }
}